<?php

namespace Erp\PollBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Erp\PollBundle\Entity\Votes
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="Erp\PollBundle\Entity\VotesRepository")
 */
class Votes
{
	
	/**
	 * @ORM\ManyToOne(targetEntity="Options", inversedBy="votespoll")
	 * @ORM\JoinColumn(name="option_id", referencedColumnName="id")
	 *
	 */
	
	protected $optionofpoll;
	
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var integer $option_id
     *
     * @ORM\Column(name="option_id", type="integer")
     */
    private $option_id;

    /**
     * @var date $voted_on
     *
     * @ORM\Column(name="voted_on", type="date")
     */
    private $voted_on;

    /**
     * @var integer $voted_by
     *
     * @ORM\Column(name="voted_by", type="integer")
     */
    private $voted_by;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set option_id
     *
     * @param integer $optionId
     */
    public function setOptionId($optionId)
    {
        $this->option_id = $optionId;
    }

    /**
     * Get option_id
     *
     * @return integer 
     */
    public function getOptionId()
    {
        return $this->option_id;
    }

    /**
     * Set voted_on
     *
     * @param date $votedOn
     */
    public function setVotedOn($votedOn)
    {
        $this->voted_on = $votedOn;
    }

    /**
     * Get voted_on
     *
     * @return date 
     */
    public function getVotedOn()
    {
        return $this->voted_on;
    }

    /**
     * Set voted_by
     *
     * @param integer $votedBy
     */
    public function setVotedBy($votedBy)
    {
        $this->voted_by = $votedBy;
    }

    /**
     * Get voted_by
     *
     * @return integer 
     */
    public function getVotedBy()
    {
        return $this->voted_by;
    }
}